package tech.aistar.corejava.day06.extend;

/**
 * Created by 李雨昂 on 2019/7/22.
 */
public class TestAnimal {
    public static void main(String[] args) {
        Cat c = new Cat();
        c.setBud(100.0);
        c.setName("HelloKitty");
        System.out.println(c.toString()+c.getName());
        c.seelpint();



        Dog d = new Dog();
        d.setLoyalty(100.0);
        d.setName("旺财");
        System.out.println(d.toString()+d.getName());
        d.seelpint();
    }


}
